import request from '@/utils/request'

export function deleteDeferTask(id) {
  return request({
    url: '/pms/task/defer/deleteDeferTask?id=' + id,
    method: 'get'
  })
}


export function queryDeferList(query) {
  return request({
    url: '/pms/task/defer/list',
    method: 'get',
    params: query
  })
}

export function saveDeferTask(data) {
  return request({
    url: '/pms/task/defer/add',
    method: 'post',
    data: data
  })
}

export function selectAuditDefer(query) {
  return request({
    url: '/pms/task/defer/pageAudit',
    method: 'get',
    params: query
  })
}

export function chgAuditStatus(params) {
  return request({
    url: '/pms/task/defer/auditDefer',
    method: 'get',
    params: params
  })
}